package com.xmsx.back.pojo;

import java.sql.Date;
import java.util.Objects;

public class Recruitment {

    private String website;
    private String title;
    private Date datetime;
    private String tags;

    public Recruitment() {
    }

    public Recruitment(String website, String title, Date datetime, String tags) {
        this.website = website;
        this.title = title;
        this.datetime = datetime;
        this.tags = tags;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Recruitment)) return false;
        Recruitment that = (Recruitment) o;
        return Objects.equals(getWebsite(), that.getWebsite()) &&
                Objects.equals(getTitle(), that.getTitle()) &&
                Objects.equals(getDatetime(), that.getDatetime()) &&
                Objects.equals(getTags(), that.getTags());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getWebsite(), getTitle(), getDatetime(), getTags());
    }

    @Override
    public String toString() {
        return "Recruitment{" +
                "website='" + website + '\'' +
                ", title='" + title + '\'' +
                ", datetime=" + datetime +
                ", tag=" + tags +
                '}';
    }
}
